@extends('frontend/layouts/bootstrap')

@section('content')
<div>
    <span style="font-size: 31.5px;  line-height: 40px;  margin: 10px 0;  font-family: inherit;  font-weight: bold;  color: inherit;  text-rendering: optimizelegibility;  -webkit-margin-before: 0.83em;  -webkit-margin-after: 0.83em;  -webkit-margin-start: 0px;  -webkit-margin-end: 0px;">  Container Bill upload</span>
    {{ link_to_route('car_balance.container.confirmed', 'Return to Confirmed Container list', null, array('class' => 'btn btn-info', 'style' => 'float: right; margin: 10px 0;')) }}
</div>

{{ Form::open(array('route' => array('car_balance.container.container_bill', $container->container_id), 'class' => 'form-horizontal', 'files' => true)) }}

<table class="table table-bordered">
    <thead style="background-color: #f0f0f0;">
    <tr>
        <th title="Container B/L">Container B/L</th>
        <th title="Container Tulburiin huudas">Container Tulburiin huudas</th>
    </tr>
    </thead>
    <tr>
        <td>
            <div class="fileupload fileupload-new" data-provides="fileupload">
                <div id="container_bill" class="input-append">
                    <div class="uneditable-input span3">
                        @if ( $container->container_bill )
                            <a target="_blank" style="margin-bottom: 5px;" class="btn btn-success btn-mini" href="{{route('car_balance.main.display', array('type'=>'container', 'file'=>'container_bill_'.$container->container_no.'.pdf'))}}" title="Container bill"><i class="icon-zoom-in icon-white"></i></a></br>
                            <span class="fileupload-preview"></span>
                        @else
                            <i class="icon-file fileupload-exists"></i>
                            <span class="fileupload-preview"></span>
                        @endif
                    </div>
                    <div>
                        <span class="btn btn-file">
                            <span class="fileupload-new">Select file</span>
                            <span class="fileupload-exists">Change</span>
                            <input name="container_bill" type="file" />
                        </span></br>
                        <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
                    </div>
                </div>
            </div>
        </td>
        <td>
            <div class="fileupload fileupload-new" data-provides="fileupload">
                <div id="tulburiin_nehemjleh" class="input-append">
                    <div class="uneditable-input span3">
                        @if ( $container->container_bill )
                            <a target="_blank" style="margin-bottom: 5px;" class="btn btn-success btn-mini" href="{{route('car_balance.main.display', array('type'=>'container', 'file'=>'tulburiin_nehemjleh_'.$container->container_no.'.pdf'))}}" title="Tulburiin nehemjleh"><i class="icon-zoom-in icon-white"></i></a></br>
                            <span class="fileupload-preview"></span>
                        @else
                            <i class="icon-file fileupload-exists"></i>
                            <span class="fileupload-preview"></span>
                        @endif
                    </div>
                    <div>
                        <span class="btn btn-file">
                            <span class="fileupload-new">Select file</span>
                            <span class="fileupload-exists">Change</span>
                            <input name="tulburiin_nehemjleh" type="file" />
                        </span></br>
                        <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
                    </div>
                </div>
            </div>
        </td>
        <td>
            <button type="reset" class="btn btn-medium btn-default">Reset</button>
            <button type="submit" class="btn btn-medium btn-success"><i class="icon-plus icon-white"></i> Импорт хийх</button>
        </td>
    </tr>
</table>

{{ Form::token() }}
{{ Form::close() }}


@stop

@section('pagestyles')
<link rel="stylesheet" type="text/css" href={{ asset('assets/bootstrap-fileupload/fileupload.css') }} />
<link rel="stylesheet" type="text/css" href={{ asset('assets/bootstrap-datepicker/datepicker.css') }} />
@stop

@section('pagescripts')
<script type="text/javascript" src={{ asset('assets/bootstrap-fileupload/fileupload.js') }}></script>
<script type="text/javascript" src={{ asset('assets/bootstrap-datepicker/datepicker.js') }}></script>
@stop